Optimal. Leaf size=42 \[ \frac {e^2 x}{c}+\frac {d^2 \log (x)}{b}-\frac {(c d-b e)^2 \log (b+c x)}{b c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {712}
\begin {gather*} -\frac {(c d-b e)^2 \log (b+c x)}{b c^2}+\frac {d^2 \log (x)}{b}+\frac {e^2 x}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rubi steps
\begin {align*} \int \frac {(d+e x)^2}{b x+c x^2} \, dx &=\int \left (\frac {e^2}{c}+\frac {d^2}{b x}-\frac {(-c d+b e)^2}{b c (b+c x)}\right ) \, dx\\ &=\frac {e^2 x}{c}+\frac {d^2 \log (x)}{b}-\frac {(c d-b e)^2 \log (b+c x)}{b c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 42, normalized size = 1.00 \begin {gather*} \frac {b c e^2 x+c^2 d^2 \log (x)-(c d-b e)^2 \log (b+c x)}{b c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 55, normalized size = 1.31
method | result | size |
norman | \(\frac {e^{2} x}{c}+\frac {d^{2} \ln \left (x \right )}{b}-\frac {\left (b^{2} e^{2}-2 b c d e +d^{2} c^{2}\right ) \ln \left (c x +b \right )}{b \,c^{2}}\) | \(54\) |
default | \(\frac {e^{2} x}{c}+\frac {\left (-b^{2} e^{2}+2 b c d e -d^{2} c^{2}\right ) \ln \left (c x +b \right )}{b \,c^{2}}+\frac {d^{2} \ln \left (x \right )}{b}\) | \(55\) |
risch | \(\frac {e^{2} x}{c}+\frac {d^{2} \ln \left (-x \right )}{b}-\frac {b \ln \left (c x +b \right ) e^{2}}{c^{2}}+\frac {2 \ln \left (c x +b \right ) d e}{c}-\frac {\ln \left (c x +b \right ) d^{2}}{b}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 52, normalized size = 1.24 \begin {gather*} \frac {d^{2} \log \left (x\right )}{b} + \frac {x e^{2}}{c} - \frac {{\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left (c x + b\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.12, size = 52, normalized size = 1.24 \begin {gather*} \frac {c^{2} d^{2} \log \left (x\right ) + b c x e^{2} - {\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left (c x + b\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 73 vs.
\(2 (34) = 68\).
time = 0.44, size = 73, normalized size = 1.74 \begin {gather*} \frac {e^{2} x}{c} + \frac {d^{2} \log {\left (x \right )}}{b} - \frac {\left (b e - c d\right )^{2} \log {\left (x + \frac {b c d^{2} + \frac {b \left (b e - c d\right )^{2}}{c}}{b^{2} e^{2} - 2 b c d e + 2 c^{2} d^{2}} \right )}}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.67, size = 54, normalized size = 1.29 \begin {gather*} \frac {d^{2} \log \left ({\left | x \right |}\right )}{b} + \frac {x e^{2}}{c} - \frac {{\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left ({\left | c x + b \right |}\right )}{b c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 49, normalized size = 1.17 \begin {gather*} \frac {e^2\,x}{c}-\ln \left (b+c\,x\right )\,\left (\frac {d^2}{b}+\frac {b\,e^2}{c^2}-\frac {2\,d\,e}{c}\right )+\frac {d^2\,\ln \left (x\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________